import routes from "./routes";
import postcssPxtoRem from "postcss-pxtorem";
export default {
  alias: {
    "@a": "/src/api",
    "@c": "/src/components",
    "@p": "/src/pages",
    "@u": "/src/utils",
  },

  routes,
  proxy: {
    "/conner": {
      target: "https://api.it120.cc",
      changeOrigin: true,
      pathRewrite: { "^/conner": "/conner" },
    },
  },

  extraPostCSSPlugins: [
    postcssPxtoRem({
      rootValue: 40,
      propList: ["*"],
    }),
  ],

  dva: {},
  plugins: ["@umijs/plugins/dist/dva"],
};
